﻿package idv.cjcat.emitter.errors {
	import flash.errors.*;
	
	import idv.cjcat.emitter.*;
	
	public class DestroyedObjectError extends Error {
		
		private var _object:IEmitterDestructible;
		
		public function DestroyedObjectError(obj:IEmitterDestructible) {
			super("This object is already destroyed and should not be used anymore: " + IEmitterXML(obj).id);
			this._object = obj;
		}
		
		public function object():IEmitterDestructible { return _object; }
	}
}